package game.model.impl

import game.Config
import game.business.BlockAble
import game.business.Movable
import game.model.View
import org.itheima.kotlin.game.core.Painter

/**
 * 草丛
 *
 */
class Grass(override val x: Int, override val y: Int) : View {

/*    override val x: Int = 200
    override val y: Int = 200*/

    override var width: Int = Config.block
    override var height: Int = Config.block


    override fun draw() {
        Painter.drawImage("img/grass.gif",x,y)
    }

/*    //位置
    var x:Int = 100
    var y:Int = 100

    //宽高
    var width:Int = Config.block
    var height:Int = Config.block

    //显示
    fun draw(){
        Painter.drawImage("img/grass.png",200,200)
    }*/
}